package system

import (
	"context"
	"gf_blog_admin/internal/service"

	"gf_blog_admin/api/system/v1"
)

func (c *ControllerV1) ConfigData(ctx context.Context, req *v1.ConfigDataReq) (res *v1.ConfigDataRes, err error) {
	res = &v1.ConfigDataRes{}
	res.Config, err = service.SysConfig().GetConfig(ctx, req.ConfKey)
	return
}
